package com.michaellou.Test;

import java.util.Calendar;
import java.util.Date;

public class TestAddDay {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println(addDay(new Date()));
	}
		private static Date addDay(Date startDate) {
			Calendar cal=Calendar.getInstance();
			cal.setTime(startDate);
			cal.set(cal.DAY_OF_MONTH,cal.get(cal.DAY_OF_MONTH)+1);
			startDate=cal.getTime();
			return startDate;
		}
}
